
#include "cocos2d.h"
#include "GameConstants.h"


class SpriteHelper//:public Singleton<SpriteHelper>
{
protected:
	//static SpriteHelper *Instance;
private:
	 static cocos2d::CCRect spriteRect( cocos2d::CCSprite * sprite);
public:
	SpriteHelper(void);
	~SpriteHelper(void);
	
	static void initSpriteActionAnimation(int startFrameIndex,int frameCount,char *frameFormat,const char *plistFile,char *animationName);
	static void InitFrameSet( int startFrameIndex, int frameCount, char *frameFormat, const char *plistFile,SpriteAction action,SpriteTag type);
	static cocos2d::CCAction* SetCurrentAction(cocos2d::CCSprite *sprite,SpriteAction action,SpriteTag type);
	static cocos2d::CCAction* SetCurrentActionNoRepeat(cocos2d::CCSprite *sprite,SpriteAction action,SpriteTag type,cocos2d::CCCallFuncN * callback);

	static bool SpriteHelper::collide(cocos2d::CCSprite *a, cocos2d::CCSprite *b);

};



